<?php
	if(isset($_POST['enregistrer']))
	{
		if (get_magic_quotes_gpc())
			$value = htmlspecialchars(stripslashes((string)$_POST['editor']));
		else
			$value = htmlspecialchars((string)$_POST['editor']);

		$handle = fopen(CHEMIN_TEXTES."pageAccueil.html", "w");
		fputs($handle, $value);
		fclose($handle);

		header('Location: index.php');
	}
?>